//删除
const db=require("../lib/db.js.js")
function delArticle(ids){
    console.log(ids)
    return new Promise((resolve,reject)=>{
        let sql = `delete from content where _id=${ids}`
        db.quarySql(sql).then(data =>{
            console.log(data)
            if(data.length == 0){
            resolve(500)
            }else{
                resolve(200)
            }
        
        })
   })

}
//导出
module.exports=delArticle;